package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller//相当与@Component IOC注册bean类//
@RequestMapping(value="/springMVC")
public class FirstController {
    @RequestMapping("/firstController")//映射网址
    public String  sayHello() {
        System.out.println("访问到FirstController");
        return "success";
    }
}
